package config

type DBConfig struct {
	DBDSN string
}

func NewDBConfig(db database) *DBConfig {
	return &DBConfig{
		DBDSN: db.UserName + ":" + db.Password + "@tcp(" + db.Host + ":" + db.Port + ")/" +
			db.DbName + "?charset=utf8mb4&parseTime=True&loc=Local",
	}
}
